package demo2;

import demo1.BookList;
import demo3.*;

import java.util.Scanner;

public class AdminUser extends User {
    public AdminUser(String name) {
        super(name);
       this.operation= new Operation[]{
               new Exit(),
                new Find(),
                new Add(),
                new Del(),
                new Show()
        };
    }



    public int meau(){
        System.out.println("***********************");
        System.out.println("欢迎 "+name+" 管理员来到图书管理系统");
        System.out.println("  1.查找图书");
        System.out.println("  2.增加图书");
        System.out.println("  3.删除图书");
        System.out.println("  4.显示图书");
        System.out.println("  0.推出系统");
        System.out.println("***********************");
        Scanner sc=new Scanner(System.in);
        int choice=sc.nextInt();
        return choice;
    }



}
